<?php
namespace Common\Service;

/**
 * 战队成员
 * 存储位置：mongo > imba_game_team_member
 * @author liubo <liubo@ilongyuan.com.cn>
 */
Class GameTeamMemberService extends BaseService
{
    /*
        id
        team_id
        user_id
        avatar
        description
        name
        real_name
        role
        status
        create_time
        update_time
        sort
    */
    protected $_auto = array(
        array('team_id', 'intval', self::MODEL_BOTH, 'function'),
        array('user_id', 'intval', self::MODEL_BOTH, 'function'),
        array('sort', 'intval', self::MODEL_BOTH, 'function'),
        array('status', 'intval', self::MODEL_BOTH, 'function'),
        array('create_time', NOW_TIME, self::MODEL_INSERT),
        array('update_time', NOW_TIME, self::MODEL_BOTH)
    );
}